#ifndef SETTINGSLISTEPROFILS_H
#define SETTINGSLISTEPROFILS_H

#include <QSettings>
#include <QtGui>
#include "Proto.h"
#include "Client.h"


class SettingsListeProfils : public QSettings
{
    Q_OBJECT

private:
    Client *parent;
    int nbProfils;
    QString *string;

    QLineEdit *ip;
    QLineEdit *port;
    QLineEdit *pass;
    QLineEdit *nick;
    QLineEdit *nomProfil;
    //QListWidget *listeClients;
    QStandardItemModel *modele;
    QTreeView *listeProfils;

public:
    SettingsListeProfils(Client *parent, QLineEdit *ip, QLineEdit *port, QLineEdit *pass, QLineEdit *nick, QLineEdit *nomProfil, QTreeView *listeProfils);
    ~SettingsListeProfils();

    void ajouterProfil();
    void supprimerProfil(const QString &idProfil);
    void majListe();

signals:

public slots:
    void on_listeProfils_doubleClicked(QModelIndex i);
};

#endif // SETTINGSLISTEPROFILS_H
